Skip to content

feat: auto-detect GitHub remotes and open repository picker with selectable list#39

Open
erdostom wants to merge 5 commits intokitlangton:mainfrom
erdostom:repo-view-default
Open

feat: auto-detect GitHub remotes and open repository picker with selectable list#39
erdostom wants to merge 5 commits intokitlangton:mainfrom
erdostom:repo-view-default

Conversation

@erdostom
Copy link
Copy Markdown

@erdostom erdostom commented May 6, 2026

  • Auto-switches to repository view on startup when inside a GitHub-connected repo
    • Detects GitHub remotes from .git/config
  • Redesigns "Open repository" modal as a searchable list of detected remotes
  • Preserves manual owner/name or GitHub URL entry
  • Adds shift-o shortcut for the picker
  • Adds h shortcut to jump to the authored/home view

@erdostom erdostom marked this pull request as draft May 6, 2026 22:48
erdostom added 3 commits May 6, 2026 18:59
Use refs for refreshPullRequestsAtom and registry to stabilize the
auto-refresh useEffect dependency array. Add lastAutoRefreshedKeyRef
to prevent duplicate auto-refreshes for the same cache key.

This stops the runaway Effect fiber creation that caused high CPU
and memory usage when the GitHub API returned errors.
- Remove redundant auto-refresh useEffect that double-fetched with
  pullRequestsAtom's own reactive recompute.
- Add refreshInFlightRef guard so rapid refresh calls (startup,
  focus return, idle refresh, user keypress) cannot overlap.
- Detect GitHub rate-limit errors in Effect.retry and skip retries,
  failing fast instead of spawning 6 retry processes each.
- Clear in-flight flag when pullRequestResult exits waiting state.
@erdostom erdostom force-pushed the repo-view-default branch from 7f3ef4a to c20f8fa Compare May 6, 2026 22:59
@erdostom erdostom marked this pull request as ready for review May 6, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant